package com.lovo.sheyingback.controller;

import com.lovo.sheyingback.dao.SystemDictMapper;
import com.lovo.sheyingback.result.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ResponseResult
@RequestMapping("/systemDicts")
public class SystemDictController {
    @Autowired
    private SystemDictMapper systemDictMapper;
    @GetMapping
    public Object listSystemDictByTypeId(Integer typeId){
        return systemDictMapper.listSystemDictByTypeId(typeId);
    }
}
